Hi everyone,
I am trying to use the table command in Stata17 to generate a table with means and SD displayed in the the same line.
If you run the following commands:
This generates a table with means and standard deviations in seperate line for each variable
What I am hoping to achieve is to get the mean (SD) in the same row.
Is there a way?
Thanks
I am trying to use the table command in Stata17 to generate a table with means and SD displayed in the the same line.
If you run the following commands:
Code:
webuse nhanes2l, clear table ( var ) ( sex ) (), statistic(frequency) statistic(mean age height weight) statistic(sd age height weight) nformat(%9.1g percentile) nformat(%9.1f mean sd)
What I am hoping to achieve is to get the mean (SD) in the same row.
Is there a way?
Thanks
Comment